import { defineStore } from "pinia";
export  const useToken = defineStore('token',{
    state(){
        return {
            token:""
        }
    },
    actions:{
            replace(value){
                this.token = value
            },
            clear(){
                this.token = ''
            }
    },
    getters:{
        getToken(){
            return this.token
        }
    },
    persist:{
        storage:localStorage,
       
    }
}) 